/**
 * @author 小童
 * @version 1.0
 * @date 2022-04-06
 */
import {getRequest, postRequest} from "@/util/axios";

export  const getCourseByPage = (course) => postRequest('/course/getCourseByPage',course);

export  const  addCourse = (course) => postRequest('/course/add',course)

export const  deleteCourse = (id)=>getRequest('/course/remove',{id})

export  const  updateCourse = (course) => postRequest('/course/update',course)

export const getAllCourse = () =>getRequest('/course/getAllCourse');

export const getAllCourseMapping = (courseMapping) =>postRequest('courseMapping/getCourseMappingByPage',courseMapping)

export const deleteCourseMapping =(id)=>getRequest('/courseMapping/remove',{id})

export const addCourseMapping =(courseMapping)=>postRequest('/courseMapping/add',courseMapping)
